<%@page contentType="text/html"%>
<%@page pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="f"%>
<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>店铺顾客列表</title>
    <script type="text/javascript" src="/three/lib/jquery/1.9.1/jquery.js"></script>
	<script type="text/javascript" src="/three/lib/layer/2.4/layer.js"></script>
	<script type="text/javascript" src="/three/static/formEdit.js"></script>
	<script type="text/javascript" src="/three/static/h-ui/js/H-ui.min.js"></script>
	<script type="text/javascript"
		src="/three/static/h-ui.admin/js/H-ui.admin.js"></script>
	<script type="text/javascript"
		src="/three/lib/My97DatePicker/4.8/WdatePicker.js"></script>
	<script type="text/javascript"
		src="/three/lib/datatables/1.10.0/jquery.dataTables.min.js"></script>
	<script type="text/javascript" src="/three/lib/laypage/1.2/laypage.js"></script>
	
    </head>
    <body>
    	<!--
        	作者：offline
        	时间：2018-10-24
        	描述：综合查询表单开始
        -->
        <form action="/three/custom/list?active=shop&shopId=${shopId}" method="post">
        <table class="table" >
        	<tr>
        		<td>
					<div class="form-group col-lg-12">
						<div class="input-group">
							<span class="input-group-addon">手机号</span>
							<input class="form-control" type="text" name="mobile" id="mobile">
						</div>
					</div>
				</td>
				
			<td>
					<div class="form-group col-lg-12">
						<div class="input-group">
							<span class="input-group-addon">姓名</span>
							<input class="form-control" type="text" name="username" id="username">
						</div>
					</div>
				</td>
				
				
				<td>
					<div class="form-group col-lg-12">
						<div class="input-group">
							<span class="input-group-addon">会员号</span>
							<input class="form-control" type="text" name="customUserId" id="customUserId">
						</div>
					</div>

				</td>
				
				
				<td>
					<div class="form-group col-lg-12">
						<div class="input-group">
							<span class="input-group-addon">昵称</span>
							<input class="form-control" type="text" name="nikename" id="nikename">
						</div>
					</div>

				</td>
				
				<td rowspan="2">
					<div class="form-group col-lg-12">
						<div class="input-group">
							<input type="submit" class="btn btn-primary" value="查询" id="cx_btn" />
						</div>
						</div>
				</td>
				
        		
        	</tr>
        	<tr>
        		<td>
					<div class="form-group col-lg-12">
						<div class="input-group">
							<span class="input-group-addon">店铺名称</span>
							<select class="form-control" name="shop_name" style="width:150px;">
								<option value="${bisShop.shopId }">${bisShop.shopName }</option>
							</select>
						</div>
					</div>
				</td>
				
        	<td>
					<div class="form-group col-lg-12">
						<div class="input-group">
							<span class="input-group-addon">注册方式</span>
							<select class="form-control" name="enrollMode" style="width: 150px;">
								<option value="">请选择</option>
								<option value="1">微信</option>
								<option value="2">商家</option>
								<option value="3">后台</option>
							</select>
						</div>
					</div>
				</td>
				
        	<td>
					<div class="form-group col-lg-12">
						<div class="input-group">
							<span class="input-group-addon">微信状态</span>
							<select class="form-control" name="wechatStatus" id="wechatStatus" style="width: 150px;">
								<option value="">请选择</option>
								<option value="1">未订阅</option>
								<option value="2">已订阅</option>
								<option value="3">已退订</option>
							</select>
						</div>
					</div>
				</td>
        	
        	
        	<td>
					<div class="form-group col-lg-12">
						<div class="input-group">
							<span class="input-group-addon">最近到店时间</span>
							<select class="form-control" name="" style="width: 140px;">
								<option value=""></option>
								<option value="a">请选择</option>
								<option value="b">两个月未到店</option>
								<option value="c">三个月未到店</option>
								<option value="d">半年未到店</option>
								<option value="e">一年未到店</option>
							</select>
						</div>
					</div>
				</td>
				
        	</tr>
     </table>	    	
        	
        </form>
    
    <!--
    	作者：offline
    	时间：2018-10-24
    	描述：主页面开始
    -->
    
    <table class='table table-bordered table-bordered table-condensed table-hover'>
			<tr align="center" bgcolor="#C4E3F3">
				<td>头像</td>
				<td>会员号</td>
				<td>手机</td>
				<td>姓名</td>
				<td>昵称</td>
				<td>性别</td>
				<td>店铺名称</td>
				<td>微信状态</td>
				<td>QQ</td>
				<td>邮箱</td>
				<td>出生日期</td>
				<td>最近到店时间</td>
				<td>注册方式</td>
			</tr>
			<c:forEach items="${cust}" var="c">
				<tr>
					
					<td><img src="http://localhost:8085/one/upload/${c.photo }" width="50" height="40" ></td>
					<td>${c.custom_user_id }</td>
					<td>${c.mobile }</td>
					<td>${c.username }</td>
					<td>${c.nikename }</td>
					<td>
						<c:if test="${c.sex=='0'}">保密</c:if> 
						<c:if test="${c.sex=='1' }">男</c:if> 
						<c:if test="${c.sex=='2' }">女</c:if>
					</td>
					<td>${c.shop_name}</td>
					<td>
						<c:if test="${c.wechat_status=='1'}">未关注</c:if>
						<c:if test="${c.wechat_status=='2' }">已关注</c:if>
						<c:if test="${c.wechat_status=='3' }">已退订</c:if></td>
					<td>${c.qq }</td>
					<td>${c.email }</td>
					<td><f:formatDate value="${c.born_date}" pattern="yyyy-MM-dd" />
					</td>
					<td>
						<f:formatDate value="${c.recent_time}" pattern="yyyy-MM-dd" />
					</td>
					<td>
						<c:if test="${c.enroll_mode=='1'}">微信</c:if> 
						<c:if test="${c.enroll_mode=='2' }">商家</c:if> 
						<c:if test="${c.enroll_mode=='3' }">后台</c:if></td>
				</tr>
			</c:forEach>

		</table>
		<!--主页面结束-->
    	
 	</body>
</html>